SureCart\Models\LineItem A

Total Complexity 56
Dependencies 4
Dependents 3
Total lines 361
Lines of code 167
Logical lines of code 75
Comment lines 130
Methods 22
Properties 2

Methods 22

Method Rating Maintainability Complexity Lines of code
upsell()
S
53 5 25
swap()
S
53 5 23
unswap()
S
53 5 23
getSubtotalWithUpsellDiscountAmountAttribute()
S
61 5 12
getImageAttribute()
S
65 5 9
getPurchasableStatusDisplayAttribute()
S
56 3 18
getSkuAttribute()
S
70 3 6
getConvertedDiscountAmountAttribute()
S
71 3 6
getVariantDisplayOptionsAttribute()
S
71 2 6
getIsSwappableAttribute()
S
78 2 3
getAdHocDisplayAmountAttribute()
S
77 2 3
getBumpDisplayAmountAttribute()
S
77 2 3
getScratchDisplayAmountAttribute()
S
77 2 3
getTaxDisplayAmountAttribute()
S
77 2 3
getFullDisplayAmountAttribute()
S
77 2 3
getTrialDisplayAmountAttribute()
S
77 2 3
setVariantAttribute()
S
79 1 3
getCurrencyAttribute()
S
79 1 3
getSubtotalDisplayAmountAttribute()
S
79 1 3
getTotalDisplayAmountAttribute()
S
79 1 3
getSubtotalWithUpsellDiscountDisplayAmountAttribute()
S
79 1 3
getTotalDefaultCurrencyDisplayAmountAttribute()
S
77 1 3